<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColSyncTimeToOrdersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('orders', function(Blueprint $table)
        {
            $table->integer('sync_time')->default(0)->comment("最后同步时间");
            $table->string('order_sn')->nullable()->comment("百盛订单号");
            $table->integer('mc_order_status')->default(0)->comment("订单状态，百盛的代码");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
